zeek64.js, zeek64.txt and zeek.txt

zeek64.js


//In Node.js, Modules are the blocks of encapsulated code that communicates with an 
external application on the basis of their related functionality.  All of these module
 systems have one thing in common: they allow you to import and export stuff.

//fs means file system.

const fsrequire("fs");
let text = fs.readFileSync("zeek64.txt","utf-8");
texttext.replace("WE","Zeeshan");
console.log(text);

console.log("Creating a new file by name zeek.txt");
fs.writeFileSync("zeek.txt",text);


zeek64.txt

WE are using this text to learn node js modules in zeek64.js in Visual Studio code.


zeek.txt

Zeeshan are using this text to learn node js modules in zeek64.js in Visual Studio code.



Comments

Popular posts from this blog

INDEX OF ZEEK HTML,CSS and JS